home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dlasy2.z / dlasy2
Encoding:
Text File  |  2002-10-03  |  4.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. DDDDLLLLAAAASSSSYYYY2222((((3333SSSS))))                                                          DDDDLLLLAAAASSSSYYYY2222((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DLASY2 - solve for the N1 by N2 matrix X, 1 <= N1,N2 <= 2, in  op(TL)*X +
  10.      ISGN*X*op(TR) = SCALE*B,
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE DLASY2( LTRANL, LTRANR, ISGN, N1, N2, TL, LDTL, TR, LDTR, B,
  14.                         LDB, SCALE, X, LDX, XNORM, INFO )
  15.  
  16.          LOGICAL        LTRANL, LTRANR
  17.  
  18.          INTEGER        INFO, ISGN, LDB, LDTL, LDTR, LDX, N1, N2
  19.  
  20.          DOUBLE         PRECISION SCALE, XNORM
  21.  
  22.          DOUBLE         PRECISION B( LDB, * ), TL( LDTL, * ), TR( LDTR, * ),
  23.                         X( LDX, * )
  24.  
  25. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  26.      These routines are part of the SCSL Scientific Library and can be loaded
  27.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  28.      directs the linker to use the multi-processor version of the library.
  29.  
  30.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  31.      4 bytes (32 bits). Another version of SCSL is available in which integers
  32.      are 8 bytes (64 bits).  This version allows the user access to larger
  33.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  34.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  35.      only one of the two versions; 4-byte integer and 8-byte integer library
  36.      calls cannot be mixed.
  37.  
  38. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  39.      DLASY2 solves for the N1 by N2 matrix X, 1 <= N1,N2 <= 2, in op(TL)*X +
  40.      ISGN*X*op(TR) = SCALE*B, where TL is N1 by N1, TR is N2 by N2, B is N1 by
  41.      N2, and ISGN = 1 or -1.  op(T) = T or T', where T' denotes the transpose
  42.      of T.
  43.  
  44.  
  45. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  46.      LTRANL  (input) LOGICAL
  47.              On entry, LTRANL specifies the op(TL):  = .FALSE., op(TL) = TL, =
  48.              .TRUE., op(TL) = TL'.
  49.  
  50.      LTRANR  (input) LOGICAL
  51.              On entry, LTRANR specifies the op(TR):  = .FALSE., op(TR) = TR, =
  52.              .TRUE., op(TR) = TR'.
  53.  
  54.      ISGN    (input) INTEGER
  55.              On entry, ISGN specifies the sign of the equation as described
  56.              before. ISGN may only be 1 or -1.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDLLLLAAAASSSSYYYY2222((((3333SSSS))))                                                          DDDDLLLLAAAASSSSYYYY2222((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      N1      (input) INTEGER
  75.              On entry, N1 specifies the order of matrix TL.  N1 may only be 0,
  76.              1 or 2.
  77.  
  78.      N2      (input) INTEGER
  79.              On entry, N2 specifies the order of matrix TR.  N2 may only be 0,
  80.              1 or 2.
  81.  
  82.      TL      (input) DOUBLE PRECISION array, dimension (LDTL,2)
  83.              On entry, TL contains an N1 by N1 matrix.
  84.  
  85.      LDTL    (input) INTEGER
  86.              The leading dimension of the matrix TL. LDTL >= max(1,N1).
  87.  
  88.      TR      (input) DOUBLE PRECISION array, dimension (LDTR,2)
  89.              On entry, TR contains an N2 by N2 matrix.
  90.  
  91.      LDTR    (input) INTEGER
  92.              The leading dimension of the matrix TR. LDTR >= max(1,N2).
  93.  
  94.      B       (input) DOUBLE PRECISION array, dimension (LDB,2)
  95.              On entry, the N1 by N2 matrix B contains the right-hand side of
  96.              the equation.
  97.  
  98.      LDB     (input) INTEGER
  99.              The leading dimension of the matrix B. LDB >= max(1,N1).
  100.  
  101.      SCALE   (output) DOUBLE PRECISION
  102.              On exit, SCALE contains the scale factor. SCALE is chosen less
  103.              than or equal to 1 to prevent the solution overflowing.
  104.  
  105.      X       (output) DOUBLE PRECISION array, dimension (LDX,2)
  106.              On exit, X contains the N1 by N2 solution.
  107.  
  108.      LDX     (input) INTEGER
  109.              The leading dimension of the matrix X. LDX >= max(1,N1).
  110.  
  111.      XNORM   (output) DOUBLE PRECISION
  112.              On exit, XNORM is the infinity-norm of the solution.
  113.  
  114.      INFO    (output) INTEGER
  115.              On exit, INFO is set to 0: successful exit.
  116.              1: TL and TR have too close eigenvalues, so TL or TR is perturbed
  117.              to get a nonsingular equation.  NOTE: In the interests of speed,
  118.              this routine does not check the inputs for errors.
  119.  
  120. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  121.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  122.  
  123.      This man page is available only online.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.